import config from "@/config"
import http from "@/utils/request"

export default {
	add: {
		url: `${config.API_URL2}/api/depts`,
		name: "角色列表",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	list: {
		url: `${config.API_URL2}/api/depts`,
		name: "角色列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	delete: {
		url: `${config.API_URL2}/api/depts`,
		name: "删除角色",
		delete: async function(id){
			let deleteUrl = `${this.url}/${id}`;
			return await http.delete(deleteUrl);
		}
	},
	
}
